package 笔试;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class 随机 {
    public static void main(String[] args) {//410381

        Random random = new Random();
        培养方式(random);
    }


    private static void 抽奖(Random random,Set<Integer> s,int k) {


        while (k>0){
            int w=random.nextInt(1000)+1;
            if(s.contains(w)){
                continue;
            }else {
                s.add(w);
                k--;
                System.out.print(w);
                if(k!=0)  System.out.print(",");
            }
        }
        System.out.println();
    }

    private static void 姓名(Random random) {
        for (int i = 0; i < 50; i++) {
            for (int j = 0; j < 3; j++) {
                long a=1023L*(17+25);
                long a1= random.nextInt(1024*25)+1024*15L;
                System.out.print((char) a1);

            }
            System.out.println();

        }
    }

    private static void 时间(Random random) {
        for (int i = 0; i < 50; i++) {
                System.out.print(random.nextInt(5)+2000);
                System.out.print("-");
                int a=random.nextInt(11)+1;
                if(a<10)
                System.out.print("0");
                System.out.println(a);

        }

    }
    private static void 出身(Random random) {
        for (int i = 0; i < 50; i++) {
            System.out.print(random.nextInt(20)+1970);
            System.out.print("-");
            int a=random.nextInt(11)+1;
            if(a<10)
                System.out.print("0");
            System.out.print(a);
            System.out.print("-");
            int a1=random.nextInt(29)+1;
            if(a1<10)
                System.out.print("0");
            System.out.println(a1);

        }

    }
    private static void 培养方式(Random random) {
        String[] s = new String[]{"㻦蓱嚄","焏齃獎","軚陮轲","泋剌蝀","愅洙砌",
                "偨繃魃","蟪塾斾","博士","博士","博士","否",
                "否","是","否","否","否",
                "否","否","否","否","否",};
        for (int i = 0; i < 50; i++) {
//            for (int j = 0; j < random.nextInt(3)+1; j++) {
//                if(j!=0) System.out.print(",");
                System.out.print(s[random.nextInt(7)]);
//            }
            System.out.println();
        }
    }
    private static void 入学方式(Random random) {
        for (int i = 0; i < 50; i++) {

            switch (random.nextInt(7)){
                case 0:
                    System.out.println("统考");//410381
                    break;
                case 1:
                    System.out.println("申请考核");//410381
                    break;
                case 2:
                    System.out.println("硕博连读");//410381
                    break;
                case 3:
                    System.out.println("推免（西部支教）");//410381
                    break;
                case 4:
                    System.out.println("普通招考");//410381
                    break;
                case 5:
                    System.out.println("推免");//410381
                    break;
                case 6:
                    System.out.println("工商管理");//410381
                    break;
                case 7:
                    System.out.println("大数据");//410381
                    break;

            }
        }
    }
    private static void 院系(Random random) {
        for (int i = 0; i < 50; i++) {

            switch (random.nextInt(3)){
                case 0:
                    System.out.println("软件学院");//410381
                    break;
                case 1:
                    System.out.println("计算机学院");//410381
                    break;
                case 2:
                    System.out.println("数理统计学院");//410381
                    break;
                case 3:
                    System.out.println("家里蹲学院");//410381
                    break;
                case 4:
                    System.out.println("金融学");//410381
                    break;
                case 5:
                    System.out.println("管理学");//410381
                    break;
                case 6:
                    System.out.println("工商管理");//410381
                    break;
                case 7:
                    System.out.println("大数据");//410381
                    break;

            }
        }
    }
    private static void 性别(Random random) {
        for (int i = 0; i < 50; i++) {

            switch (random.nextInt(3)){
                case 0:
                    System.out.println("男");//410381
                    break;
                case 1:
                    System.out.println("女");//410381
                    break;
                    case 2:
                    System.out.println("男");//410381
                    break;

            }
        }
    }

    private static void 专业(Random random) {
        for (int i = 0; i < 50; i++) {

            switch (random.nextInt(8)){
                case 0:
                    System.out.println("软件工程");//410381
                    break;
                case 1:
                    System.out.println("计算机专业");//410381
                    break;
                case 2:
                    System.out.println("土木工程");//410381
                    break;
                case 3:
                    System.out.println("机械制造");//410381
                    break;
                case 4:
                    System.out.println("金融学");//410381
                    break;
                case 5:
                    System.out.println("管理学");//410381
                    break;
                case 6:
                    System.out.println("工商管理");//410381
                    break;
                case 7:
                    System.out.println("大数据");//410381
                    break;

            }
        }
    }

    private static void 垃圾大学(Random random) {
        for (int i = 0; i < 50; i++) {


            switch (random.nextInt(8)){
                case 0:
                    System.out.println("中原工学院");//410381
                    break;
                case 1:
                    System.out.println("华北水利水电大学");//410381
                    break;
                 case 2:
                    System.out.println("河南工业大学");//410381
                    break;
                case 3:
                    System.out.println("河南中医药大学");//410381
                    break;
                 case 4:
                    System.out.println("郑州轻工业");//410381
                    break;
                case 5:
                    System.out.println("南阳理工");//410381
                    break;
                 case 6:
                    System.out.println("郑州财经学院");//410381
                    break;
                case 7:
                    System.out.println("河南大学");//410381
                    break;

            }

        }
    }

    private static void 考号(Random random) {
        for (int i = 0; i < 50; i++) {//18410384679451526
            System.out.print(1);//410381
            for (int j = 0; j < 15; j++) {
                System.out.print(random.nextInt(10));//410381
            }
            System.out.println();//410381

        }
    }
    private static void 数字(Random random) {
        Set<String> s = new HashSet<>();

            while (s.size()<=50) {//18410384679451526
                String a="1";
                for (int j = 0; j < 10; j++) {
                    a+=random.nextInt(10);//410381
                }
                a+=
                s.add(a);
            }
        for (String ss:s) {
            System.out.println(ss);
        }
    }


    private static void 邮箱(Random random) {
        Set<String> s = new HashSet<>();
        String[] sss = new String[]{"@qq.com","@163.com"};

        while (s.size()<=50) {//18410384679451526
            String a=""+(random.nextInt(9)+1);
            for (int j = 0; j < 8; j++) {
                a+=random.nextInt(10);//410381
            }
            a+=sss[random.nextInt(2)];
            s.add(a);
        }
        for (String ss:s) {
            System.out.println(ss);
        }
    }

    private static void 身份证(Random random) {
        Set<String> s = new HashSet<>();

        while (s.size()<=50) {//18410384679451526
            String a="";
            a += random.nextInt(50381)+400000;
            a += random.nextInt(20)+1970;
            int number = random.nextInt(12);
            if(number<10)  a +="0";//05
            a +=number;

            number = random.nextInt(30);
            if(number<10)  a +="0";//05
            a +=number;

            number = random.nextInt(9999);
            if(number<10) a +="000";//05
            else if(number<100) a +="00";//05
            else if(number<1000) a +="0";//05
            a +=number;
            s.add(a);
        }
        for (String ss:s) {
            System.out.println(ss);
        }
    }
}
